package com.hb.trans.bean


data class NetWork(val isRelease: Boolean) {
    val baseUrl: String
        get() {
            return if (isRelease) "https://www.hbjt.org.cn/hbjt/api/" else "https://www.hbjt.org.cn/hbjt/api/"
        }
}

data class City(
    val id: String = "",
    val code: String,
    val name: String,
    val supid: String = "",
    val type: String = ""
)

data class GPSDisable(val gpsDisable: Boolean)

data class Geocoder(
    val result: GeoCoderResult,
    val status: Int
)



data class GeoCoderResult(
    val addressComponent: AddressComponent,
    val business: String,
    val cityCode: Int,
    val formatted_address: String,
    val sematic_description: String
)

data class AddressComponent(
    val country: String,//国家
    val country_code: Int,//国家编号
    val country_code_iso: String,//国家编码
    val country_code_iso2: String,
    val province: String,//省
    val city: String,//市
    val city_level: Int,
    val district: String,//区、县
    val town: String,
    val adcode: String,
    val street: String,//街道
    val street_number: String,
    val direction: String,
    val distance: String
)

data class Base<T>(val code: Int, val info: String?, val message: String?, val data: T?)

data class HomeList(
    val navigations: MutableList<Navigation>,
    val articles: MutableList<Article>,
    val banners: MutableList<Banner>
)

data class Banner(
    val id: String,
    val pic: String,
    val redirect_url: String
)

data class ArticleLabel(val name: String, val id: String)

//服务
data class ServeList(val time: Long, val list: MutableList<Serves>)

data class Serves(val title: String, val childs: MutableList<ServeChild>)
data class ServeChild(
    val click: Int,//点击量
    val home_entrance: Int,//首页快捷入口0否 1是
    val id: String,
    val level_name: String,//标题
    val parent_id: String,
    val pic: String,//封面图片
    val redirect_url: String,//跳转地址
    val service_type: Int,//1站内服务 2 站外服务
    val sort: Int,//排序
    val status: Int,//显示状态 1显示 0隐藏
    val title: String//标题
)

data class Student(
    val address: String,
    val applydate: String,
    val graduation: String,
    val idcard: String,
    val name: String,
    val old: Boolean,
    val phone: String,
    val photourl: String,
    val platName: String,
    val schName: String,
    val sex: Int,
    val stunum: String,
    val traintype: String
)

data class SchoolDetail(
    val name: String,
    val address: String,
    val inscode: String,
    val busistatus: String,
    val phone: String,
    val busiscope: String,
    val coas: MutableList<Coach>
)

data class School(
    val inscode: String,
    val name: String,
    val shortname: String,
    val busistatus: Int,
    val address: String
)

data class Coach(
    val name: String,
    val coanum: String,
    val teachpermitted: String?,
    val photourl: String?,
    val tstunum: String?,
    val passPersent: String?,
    val pjList: MutableList<Evaluation>?
)

data class Evaluation(
    val classrecordId: String?,
    val coacode: String?,
    val coaname: String?,
    val content: String?,
    val createdTime: String,
    val id: String?,
    val inscode: String?,
    val insname: String?,
    val stucode: String?
)

data class LoginParams(val phone: String, val code: String, val drivingPermitted: String, val cardCode: String)

//新闻
data class New(
    val author: String,//作者
    val click: Int,//阅读数量
    val comment: Int,//评论数
    val create_time: String,//创建时间
    val good: Int,//点赞数量
    val has_video: Int,//是否包含视频
    val head_pic: String,//封面图片
    val id: String,//资讯列表
    val is_top: Int,//0：不置顶，1：置顶
    val label_id: String,//文章所属标签类型
    val name: String,//
    val order: Int,
    val sn: Int,
    val status: Int,//是否显示 0：不显示 ，1：显示
    val summary: String?,//简介
    val title: String,//文章标题
    val video_url: String?//视频连接
)

data class NewDetail(
    val author: String,
    val click: Int,
    val comment: Int,
    val content: String,
    val create_time: String,
    val good: Int,
    val has_video: Int,
    val head_pic: String,
    val id: String,
    val is_top: Int,
    val label_id: String,
    val sn: Int,
    val status: Int,
    val summary: String?,
    val title: String,
    val video_url: String?
)

data class Navigation(
    val click: Int,
    val home_entrance: Int,
    val id: String,
    val level_name: String,
    val parent_id: String,
    val pic: String,
    val redirect_url: String,
    val service_type: Int,
    val sort: Int,
    val status: Int,
    val title: String
)

data class Article(
    val author: String,
    val click: Int,
    val comment: Int,
    val create_time: String,
    val good: Int,
    val has_video: Int,
    val head_pic: String,
    val id: String,
    val is_top: Int,
    val label_id: String,
    val name: String,
    val order: Int,
    val sn: Int,
    val status: Int,
    val summary: String,
    val title: String,
    val video_url: String
)

data class PeriodPandect(
    val lastinstancetime: Int,
    val needtime: Int,
    val subject: Int,
    val validmileage: Double
)

data class PeriodList(val list: MutableList<Period>, val page: Int, val size: Int, val total: Int)

data class Period(
    val trainingdate: String,
    val starttime: String,
    val endtime: String,
    val duration: Int,
    val mileage: Float,
    val lastinstancetime: Int,
    val reviewstatus: Int,
    val recheckreason: String,
    val subjcode: String,
    val coachName: String,
    val carName: String,
    val coanum: String,
    val schName: String,
    val inscode: String,
    val periodId: String,
    val rated: Int,
    val complaint: Boolean,
    val hgTime: Int,
    val syTime: Int
)

data class VersionInfo(val version_android: String)
data class AboutUs(val wechat: String, val mobile: String, val about_us: String)

data class Update(
    val android_url: String,
    val app_version: String,
    val appname: String,
    val download_url: String,
    val id: String,
    val ios_url: Any,
    val up_content: String
)

data class Save(
    val msg: Boolean,
    val tip: String
)

data class MyMenu(
    val head: String,
    val name: String
)

data class EnrollCount(
    val count: Int
)

data class SearchItem(
    var title: String,
    var chosen: Boolean

)
data class TitleItem(
    var title: String,
    var str: String

)